/*
 * @(#)MockServletContextExt.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.test;

import org.springframework.mock.web.MockServletContext;

/**
 * Spring 의 MockServetContext 를 확장해서 getRealPath 함수를 수정한 버전.
 * Window 에서 MockServletContext 에 "\\경로" 를 넣으면 못찾고 "/경로" 를 넣으면 찾기 때문에 추가 함 
 *
 * @author Web Platform Development Team
 */
public class MockServletContextExt extends MockServletContext {
	/**
	 * {@inheritDoc}
	 * */
	@Override
	public String getRealPath(String arg0) {
		arg0 = arg0.replaceAll("\\\\", "/");
		return super.getRealPath(arg0);
	}
}
